#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main()
{
	int day = 0;
	scanf("%d", &day);
	switch (day)
	{
	default:
		printf("%d\n", 3);
	case 1:
		printf("%d\n", 1);
		break;
	case 2:
		printf("%d\n", 2);
		break;
	}
	return 0;
}